﻿@model Web.Models.SysUserModel

<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.UserName, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.TextBoxFor(m => m.UserName, new {
       @class = "form-control",
       id = "txtUserName"
   })
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.UserName)
        </p>
    </div>
</div>

<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.UserAccount, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.TextBoxFor(m => m.UserAccount, new {
       @class = "form-control",
       id = "txtUserAccount"
   })
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.UserAccount)
        </p>
    </div>
</div>


<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.Password, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.PasswordFor(m => m.Password, new {
       @class = "form-control",
       id = "txtPassword"
   })
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.Password)
        </p>
    </div>
</div>

<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.DeptID, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.DropDownListFor(m => m.DeptID,Model.Departments,
        new {
        @class = "form-control",
        id = "drpDepts"
       }
   )
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.DeptID)
        </p>
    </div>
</div>

<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.Duty, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.TextBoxFor(m => m.Duty, new {
       @class = "form-control",
       id = "txtDuty"
   })
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.Duty)
        </p>
    </div>
</div>


<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.Telphone, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.TextBoxFor(m => m.Telphone, new {
       @class = "form-control",
       id = "txtTelphone"
   })
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.Telphone)
        </p>
    </div>
</div>

<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.Mobile, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.TextBoxFor(m => m.Mobile, new {
       @class = "form-control",
       id = "txtMobile"
   })
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.Mobile)
        </p>
    </div>
</div>

<div class="form-group form-group-boder">
    @Html.LabelFor(m => m.Address, new {
    @class = "control-label col-lg-2"
})
    <div class="col-lg-6">
        @Html.TextBoxFor(m => m.Address, new {
       @class = "form-control",
       id = "txtAddress"
   })
    </div>
    <div class="col-lg-4">
        <p class="text-danger">
            @Html.ValidationMessageFor(m => m.Address)
        </p>
    </div>
</div>
@Html.HiddenFor(m => m.UserID, new {value=Model.UserID })